package com.exceeddata.vcloud.common.response;

import java.util.HashMap;
import java.util.Map;

public class ResultUtil {

    public static Result success(Object object) {
    	return Result.builder().statusCode("200").result(object).build();
    }

    public static Result success() {
    	return Result.builder().statusCode("200").result(true).build();
    }
    
    public static Map<String,Object> error(Integer status,String message,String describe) {
    	Map<String,Object> errorResult = new HashMap<>();
    	errorResult.put("statusCode", status+"");
    	errorResult.put("message", message);
    	errorResult.put("describe", describe);
    	return errorResult;
    }

}
